package com.housediyadmin.command.goodsCommand
{
	import com.housediyadmin.events.goodsEvents.EditGoodsEvent;
	import com.housediyadmin.service.GoodsRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/17
	 */	
	public class EditGoodsCommand extends Command
	{
		[Inject]
		public var service:GoodsRemoteObjectService;
		
		[Inject]
		public var event:EditGoodsEvent;
		
		override public function execute():void
		{
			service.editGoods(event.goods, event.typeIds, event.fittingIds);
		}
	}
}